package com.woniu.humanresource.dao;

import com.woniu.humanresource.entity.Training;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TrainingDao {
     // 添加培训
    void insertTraining(Training training);
    // 修改培训
    void updateTraining(Training training);
    // 删除培训
    void deleteTraining(Integer tid);
    // 条件查询培训以及分页
    List<Training> selectTrainingCondition(@Param("training")Training training,
                                           @Param("pageIndex") int pageIndex,
                                           @Param("pageSize") int pageSize);
    // 条件查询总条数
    int selectTotalRecordCondition(@Param("training")Training training);

}
